Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add command to extract method out of selected code #404

Closed

Conversation

ramya-rao-a
Copy link
Contributor

Related to a feature ask in #275
This commit adds a command to the command palette that can be used to extract a method out of selected code and replace the selected code with a call to the extracted method using godoctor. Read more about godoctor at http://gorefactor.org/

godoctor does have limitations in the extract method feature.

Code containing return statements, defer statements, or anonymous functions cannot be extracted

Do provide feedback if godoctor seems like a wise choice for the extract method feature

@msftclas
Copy link

Hi @ramya-rao-a, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Ramya Achutha Rao). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@ramya-rao-a
Copy link
Contributor Author

Closing this PR in favor of #2139

@ramya-rao-a ramya-rao-a closed this Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants